package com.ruoyi.project.system.domain.dto;

import java.time.LocalDateTime;
import java.util.List;

public class ResWithMedicinesDTO {
    // 原有字段（移除 departmentId，新增 department）
    private String resId;         // 预约号（res_id）
    private Long userId;          // 用户ID（user_id）
    private Long doctorId;        // 医生ID（doctor_id）
    private String name;          // 患者姓名（name）
    private String identity;      // 身份证号（identity）
    private String phone;         // 手机号（phone）
    private String department;    // 新增：科室名称（从department_list表查询）
    private String doctorName;    // 医生姓名（doctor）
    private LocalDateTime datetime; // 预约时间（datetime）
    private LocalDateTime createTime; // 创建时间（create_time）
    private Integer resolve;      // 状态（resolve=1）
    private LocalDateTime prescribetime; // 医生下发时间
    private LocalDateTime distributeTime;  //发放药品时间
    private List<MedicineItemDTO> medicineList; // 药品列表

    // 全参构造器（更新参数：移除departmentId，新增department）
    public ResWithMedicinesDTO(String resId, Long userId, Long doctorId, String name, String identity,
                               String phone, String department, String doctorName, LocalDateTime datetime,
                               LocalDateTime createTime, Integer resolve, LocalDateTime prescribetime,
                               List<MedicineItemDTO> medicineList) {
        this.resId = resId;
        this.userId = userId;
        this.doctorId = doctorId;
        this.name = name;
        this.identity = identity;
        this.phone = phone;
        this.department = department; // 科室名称
        this.doctorName = doctorName;
        this.datetime = datetime;
        this.createTime = createTime;
        this.resolve = resolve;
        this.prescribetime = prescribetime;
        this.medicineList = medicineList;
    }

    // 无参构造器
    public ResWithMedicinesDTO() {}

    // 所有字段的getter/setter（移除departmentId的getter/setter，新增department的）
    public String getResId() { return resId; }
    public void setResId(String resId) { this.resId = resId; }
    public Long getUserId() { return userId; }
    public void setUserId(Long userId) { this.userId = userId; }
    public Long getDoctorId() { return doctorId; }
    public void setDoctorId(Long doctorId) { this.doctorId = doctorId; }
    public String getName() { return name; }
    public void setName(String name) { this.name = name; }
    public String getIdentity() { return identity; }
    public void setIdentity(String identity) { this.identity = identity; }
    public String getPhone() { return phone; }
    public void setPhone(String phone) { this.phone = phone; }
    // 新增department的getter/setter
    public String getDepartment() { return department; }
    public void setDepartment(String department) { this.department = department; }
    public String getDoctorName() { return doctorName; }
    public void setDoctorName(String doctorName) { this.doctorName = doctorName; }
    public LocalDateTime getDatetime() { return datetime; }
    public void setDatetime(LocalDateTime datetime) { this.datetime = datetime; }
    public LocalDateTime getCreateTime() { return createTime; }
    public void setCreateTime(LocalDateTime createTime) { this.createTime = createTime; }
    public Integer getResolve() { return resolve; }
    public void setResolve(Integer resolve) { this.resolve = resolve; }
    public LocalDateTime getPrescribetime() { return prescribetime; }
    public void setPrescribetime(LocalDateTime prescribetime) { this.prescribetime = prescribetime; }
    public List<MedicineItemDTO> getMedicineList() { return medicineList; }
    public void setMedicineList(List<MedicineItemDTO> medicineList) { this.medicineList = medicineList; }

    public LocalDateTime distribuTime() {return distributeTime;}
    public void setdistributeTime(LocalDateTime distributeTime) {this.distributeTime = distributeTime;}
}